$OpenBSD: patch-ui_shell_dialogs_select_file_dialog_cc,v 1.4 2015/01/22 11:16:41 robert Exp $
--- ui/shell_dialogs/select_file_dialog.cc.orig.port	Wed Dec  3 03:13:29 2014
+++ ui/shell_dialogs/select_file_dialog.cc	Sat Dec  6 11:34:27 2014
@@ -19,7 +19,7 @@
 #include "ui/shell_dialogs/select_file_dialog_mac.h"
 #elif defined(OS_ANDROID)
 #include "ui/shell_dialogs/select_file_dialog_android.h"
-#elif defined(USE_AURA) && defined(OS_LINUX) && !defined(OS_CHROMEOS)
+#elif defined(USE_AURA) && (defined(OS_BSD) || defined(OS_LINUX)) && !defined(OS_CHROMEOS)
 #include "ui/shell_dialogs/linux_shell_dialog.h"
 #endif
 
@@ -79,7 +79,7 @@ scoped_refptr<SelectFileDialog> SelectFileDialog::Crea
       return dialog;
   }
 
-#if defined(USE_AURA) && defined(OS_LINUX) && !defined(OS_CHROMEOS)
+#if defined(USE_AURA) && (defined(OS_BSD) || defined(OS_LINUX)) && !defined(OS_CHROMEOS)
   const ui::LinuxShellDialog* shell_dialogs = ui::LinuxShellDialog::instance();
   if (shell_dialogs)
     return shell_dialogs->CreateSelectFileDialog(listener, policy);
